package testcase;



import Data.wrongWordsData;
import junit.framework.TestCase;




public class WrongWordHandling_testcase extends TestCase{
/*	public void testSuggestion() throws IOException{
		DictionaryData.getDictionary();
		Suggestion suggestion = new Suggestion();
		List<String> result = new ArrayList<String>();
		String wrongWord = "ZOPPO";
		result = suggestion.suggestion(wrongWord);
		System.out.print(result);
		assertEquals(true,true);		
	}
*/	
	public void test_get_wrong_words_number_1(){
		wrongWordsData.dealWithWrongWords("sfdf");
		int result = wrongWordsData.getWrongWordNumber();
		assertEquals(result,1);
	}
	
	public void test_get_wrong_words_number_2(){
		wrongWordsData.dealWithWrongWords("sfdf");
		wrongWordsData.dealWithWrongWords("gfdf");
		int result = wrongWordsData.getWrongWordNumber();
		assertEquals(result,3);
	}
	
	public void test_get_wrong_words_number_3(){
		wrongWordsData.dealWithWrongWords("sdffsdff");
		wrongWordsData.dealWithWrongWords("xcvb");
		wrongWordsData.dealWithWrongWords("xcb");
		int result = wrongWordsData.getWrongWordNumber();
		assertEquals(result,6);
	}
/*	
	public void test_get_words_1(){
		
		wrongWordsData.addWrongWord("abcde");
		List<String> result = wrongWordsData.getWrongWord();
		assertEquals(result.get(0),"abcde");
	}
*/
}
